package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.MerchantCertify;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;


/**
 * Created by oyhk on 14-6-22.
 *
 */
@Repository
public interface MerchantCertifyRepository extends JpaRepository<MerchantCertify, Long>, JpaSpecificationExecutor {
    MerchantCertify getCertifyByMerchantId(Long merchantId);

    MerchantCertify findByMerchantIdAndMallId(Long merchantId, Long mallId);

    MerchantCertify findByIdAndMallId(Long certifyId, Long mallId);

    MerchantCertify findByUserInfoIdAndMallId(Long id, Long mallId);
}